﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ConMisOfertas.aspx.vb" Inherits="Consultas_Ofertas_ConMisOfertas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div>

    



                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                        <asp:Label ID="Label1" runat="server" CssClass="Titulo" 
        Text="       Mis Ofertas Laborales"></asp:Label>
    <br />
    <br />
                            <asp:ListView ID="ListView1" runat="server" DataSourceID="ObjMenuP" 
        EnableModelValidation="True" DataKeyNames="Id_Oferta">
        <LayoutTemplate>
            <ul>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <table style="width: 100%;">
            <thead>
            <tr>
                    <td style="width:100px">
                        <asp:Label ID="Label16" runat="server" Text="TITULO" Font-Bold="True" CssClass="SubTitulo"></asp:Label>
                    </td>
                    <td style="width:600px">
                        <asp:Label ID="Label17" runat="server" Text='<%# ucase(Eval("Titulo")) %>' CssClass="SubTitulo"></asp:Label>
                    </td>
                    <td style="width:200px">
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Aplicar" CommandArgument='<%#Convert.ToInt32(DataBinder.Eval(Container, "DataItemIndex"))%>' ForeColor="White">Aplicar a esta Oferta</asp:LinkButton>
                    </td>
                </tr>
            </thead>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="DESCRIPCIÓN" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text='<%# ucase(Eval("Descripcion")) %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="TIPO DE EMPLEO" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text='<%# ucase(Eval("Nom_Tip_Empleo")) %>'></asp:Label>
                    </td>
                    <td>
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text="DURACIÓN" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text='<%# ucase(Eval("Duracion")) %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text="SALARIO" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label11" runat="server" Text='<%# FormatCurrency(Eval("Salario")) %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="FECHA DE INICIO" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label13" runat="server" Text='<%# CDATE(Eval("Comienzo")).toshortdatestring %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label14" runat="server" Text="VACANTES" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label15" runat="server" Text='<%# Eval("Vacantes") %>'></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <EmptyDataTemplate>
            <div style="text-align:left;">
                No hay ofertas disponibles para mostrar.
            </div>
        </EmptyDataTemplate>
    </asp:ListView>
    <asp:ObjectDataSource ID="ObjMenuP" runat="server" 
        SelectMethod="GetxUsuario" TypeName="Ofertas" 
            OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
             <ajaxToolkit:ModalPopupExtender 
                    id="ModalPopupExtender1" 
                    runat="server" __designer:wfdid="w92" 
                    TargetControlID="Button2" 
                    BackgroundCssClass="modal" 
                    CancelControlID="BCancel" 
                    DropShadow="true" 
                    PopupControlID="Panel1" 
                    PopupDragHandleControlID="Panel2">
             </ajaxToolkit:ModalPopupExtender>
             <asp:Button ID="Button2" runat="server" style="display:none" />
                <asp:Panel 
                id="Panel1" 
                runat="server" 
                Width="410px" 
                Height="191px" 
                __designer:wfdid="w93" 
                CssClass="ModalPanel2" BackColor="White">
                    <asp:Panel 
                    id="Panel2" 
                    runat="server" 
                    Height="30px"
                    __designer:wfdid="w94" 
                    CssClass="BarTitleModal2" 
                    BackColor="#2E4C0E"> 
                    <div style="padding:5px; vertical-align: middle;">
                        <asp:Label ID="Label16" runat="server" Font-Bold="True" ForeColor="White" 
                            Text="RELACORP"></asp:Label>
                    </div>
                    </asp:Panel> &nbsp; &nbsp;&nbsp; <BR />
                    <BR /><DIV style="TEXT-ALIGN: center">
                    <asp:Label id="Label11" runat="server" Width="315px" Height="51px" 
                            __designer:wfdid="w95">Realmente desea aplicar a la oferta?</asp:Label><BR />
                        <BR />
                        <br />
                    <asp:Button id="Button4" runat="server" Width="62px" __designer:wfdid="w96" 
                            Text="Si"></asp:Button> &nbsp; 
                    <asp:Button id="BCancel" runat="server" Width="62px" __designer:wfdid="w97" 
                            Text="No"></asp:Button> <BR /><BR /></DIV>
                    </asp:Panel>
                    <ajaxToolkit:ModalPopupExtender 
            id="ModalPopup" 
            runat="server" 
            TargetControlID="Button3" 
            BackgroundCssClass="modal" 
            DropShadow="True" 
            PopupControlID="programmaticPopup" 
            PopupDragHandleControlID="programmaticPopupDragHandle"
            BehaviorID="programmaticModalPopupBehavior">
            </ajaxToolkit:ModalPopupExtender> 
                <asp:Panel id="programmaticPopup" runat="server" 
                    Width="404px" Height="211px" 
                    CssClass="ModalPanel2" BackColor="White">
                    <asp:Panel id="programmaticPopupDragHandle" runat="Server" Height="30" 
                        __designer:wfdid="w101" CssClass="BarTitleModal2" BackColor="#2E4C0E"><DIV style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; VERTICAL-ALIGN: middle; PADDING-TOP: 5px">
                            <asp:Label ID="Label15" runat="server" Font-Bold="True" ForeColor="White" 
                                Text="RELACORP"></asp:Label>
                        </DIV></asp:Panel> <DIV style="TEXT-ALIGN: center"><BR /><asp:Image id="ImgRst" runat="server" ImageUrl="~/imagenes/error.png" __designer:wfdid="w102" Width="64px" Height="64px"></asp:Image><br /> <asp:Label id="MsgModalPanel" runat="server" Width="278px" Height="33px" __designer:wfdid="w103" Text="Mensaje de Salida"></asp:Label><BR /><BR />
                        <asp:Button ID="Button1" runat="server" Text="Aceptar" />
                        &nbsp;<BR /> <BR /></DIV><BR /></asp:Panel>
             <asp:Button ID="Button3" runat="server" style="display:none" />
                        </ContentTemplate>
                </asp:UpdatePanel>
</div>
</asp:Content>

